<?php

/**
 * 转换ID
 *
 * @package    01CMS
 * @subpackage plugin
 * @author     rolong at vip.qq.com
 * @version    1.0.0
 * @link       http://www.01cms.com
 */

function smarty_modifier_translateId ($id,$var)
{
    if (isset(Base::i()->{$var}[$id]))
    {
        return Base::i()->{$var}[$id];
    }
    
    return $var;
}
